home *** CD-ROM | disk | FTP | other *** search
-
- unit Testdlg;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, ExtCtrls, StdCtrls, FileCtrl, Buttons, DB, DBTables,
- Dbexport;
-
- type
- TFrmDemo = class(TForm)
- BitBtn1: TBitBtn;
- BitBtn2: TBitBtn;
- FilterComboBox1: TFilterComboBox;
- DirectoryListBox1: TDirectoryListBox;
- FileListBox1: TFileListBox;
- Label1: TLabel;
- DriveComboBox1: TDriveComboBox;
- tbl: TTable;
- DBExportDialog1: TDBExportDialog;
- CBoxMultiTable: TCheckBox;
- procedure BitBtn1Click(Sender: TObject);
- procedure FileListBox1DblClick(Sender: TObject);
- private
- { DΘclarations private }
- public
- { DΘclarations public }
- end;
-
- var
- FrmDemo: TFrmDemo;
-
- implementation
-
- {$R *.DFM}
-
- procedure TFrmDemo.BitBtn1Click(Sender: TObject);
- begin
- if (FileListBox1.ItemIndex <> -1) then
- begin
- tbl.DataBaseName := DirectoryListBox1.Directory;
- tbl.TableName := FileListBox1.Items.Strings[FileListBox1.ItemIndex];
- DBExportDialog1.IniFile := 'NewFormats.ini';
- DBExportDialog1.MultiTable := CBoxMultiTable.Checked;
- DBExportDialog1.execute;
- end;
- end;
-
- procedure TFrmDemo.FileListBox1DblClick(Sender: TObject);
- begin
- BitBtn1Click(self);
- end;
-
- end.
-